package br.com.verde.exemploteca.mixin

object AppPato {
 def main(args: Array[String]) {
    val donald = new Pato
    donald.nadar
    donald.andar
    donald.grasnar
    donald.correr
    println(donald.isInstanceOf[AnimalAquatico]) // Imprime true
    println(donald.isInstanceOf[AnimalTerrestre]) // Imprime true
  }
}
